package com.liangtian.mdm.material.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.liangtian.mdm.base.BaseDao;
import com.liangtian.mdm.material.model.WlLbUpdate;

/**
 * 物料类别修改操作接口类
 *
 
 * @since 2016-10-14
 */
@Repository
public interface WlLbUpdateDao extends BaseDao<WlLbUpdate> {

    public List<WlLbUpdate> wlLbUpdateBgPageLst(Map<String, Object> update);

    public WlLbUpdate getWlLbUpdateById(WlLbUpdate update);

    //public void updateWlLbUpdateShort(WlLbUpdate update);

    public void updateWlLbUpdate(WlLbUpdate update);

    public int EditByCheckCodeAndModel(Map<String, Object> map);

    public int deleteWlLbUpdateByIdS(Map<String, Object> map);

    public List<WlLbUpdate> getWllbUpdateListByCondUpdate(Map<String, Object> update);

    public List<WlLbUpdate> wlLbUpdatePageLst(Map<String, Object> update);

    /**
     * 根据条件查询物料类别变更表数据
     *
     * @param cond
     * @return
     * @author jyh
     * @date 2017-04-06
     */
    public List<WlLbUpdate> getWllbUpdateListByCond(Map<String, Object> cond);

    /**
     * 根据物料类别变更表数据更新物料类别表数据
     *
     * @param cond
     * @return
     * @author jyh
     * @date 2017-04-06
     */
    public int updateWllbByUpdate(Map<String, Object> cond);

    /**
     * 根据条件修改物料变更表数据
     *
     * @param cond
     * @return
     * @author jyh
     * @date 2017-04-06
     */
    public int updateWllbStateByCond(Map<String, Object> cond);

    public int checkNameUpdate(Map<String, Object> map);

    public void insertWlLbUpdate(WlLbUpdate update);

}
